package com.pearadmin.pro.modules.laboratoryManagement.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * applicationtable
 * @author
 */
@Data
@Alias("Applicationtable")
@TableName("applicationtable")
public class Applicationtable implements Serializable {
    /**
     * id
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 申请物品ID
     */
    @TableField("danferousroom_id")
    private String danferousroomId;

    /**
     * 申请数量
     */
    @TableField("application_number")
    private Integer applicationNumber;

    /**
     * 申请用途
     */
    @TableField("application")
    private String application;

    /**
     * 申请状态：0：待审核，1：使用中，2：已归还，3：已拒绝
     */
    @TableField("status")
    private String status;

    /**
     * 申请人123
     */
    @TableField("application_user")
    private String applicationUser;

    /**
     * 申请时间
     */
    @TableField("application_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationTime;

    /**物品名称**/
    @TableField(exist = false)
    private String goodsName;
    /**用户名**/
    @TableField(exist = false)
    private String nickname;


    private static final long serialVersionUID = 1L;
}
